<?php $this->load->view('common/header');?>
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="/common">首页</a></li>
        <li><a href="/dinner/album?dinner_id=<?php echo $dinner_id;?>">宴会相册</a></li>
        <li><a href="javascript:;">添加</a></li>
    </ul>
</div>

<div class="formbody">
<form  method="post" id="form">
    <div class="formtitle"><span>添加菜品</span></div>
    <ul class="forminfo">
         <li>
            <label>相册名称:</label>
            <input name="dinner_id" type="hidden" class="dfinput" value="<?php echo $dinner_id;?>"/>
            <input name="name" type="text" class="dfinput" valType="required" msg="名称不能为空"/><b>*</b>
        </li>
        <li><label>价格</label><input name="price" type="text" class="dfinput" valType="required" msg="请填写价格"/><b>*</b></li>
        <li><label>描述</label><textarea name="desc" class="textinput"></textarea></li>
        <li>
            <label>封面图</label>
            <ul id="uploader_cover_img">
                <li class="pic pic-add add-pic" style="float: left;width: 220px;height: 175px;clear:none;">
                    <a href="javascript:;" class="up-img"  id="btn_cover_img"><span>+</span><br>添加照片</a>
                </li>
            </ul>
        </li>
        <li><label>&nbsp;</label><input  type="submit" class="btn" value="确认保存"/></li>
    </ul>
    </form>
</div>
<?php $this->load->view('common/footer')?>
<script>
var object = [{"obj": "#uploader_cover_img", "btn": "#btn_cover_img"}];
seajs.use(['<?php echo css_js_url('dinner.js', 'admin')?>', 'admin_uploader','jqvalidate','jqueryswf','<?php echo css_js_url('jquery.swfupload.js', 'common');?>','swfupload'], function(a, swfupload){
    swfupload.swfupload(object);
})
</script>
</body>
</html>
